﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserCentents/Centents.Master" AutoEventWireup="true"
    CodeBehind="School.aspx.cs" Inherits="School.UserCentents.School1" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="MainBody">
        <!-- 右侧开始 -->
        <div class="mainHeader">
            <div class="itopic">
                <img src="../images/body_side_icon_set.gif">学校列表</div>
            <div class="clear">
            </div>
        </div>
        <div class="mainBodyTop">
            <div id="Mbtns">
                <a href="AddSchool.aspx" class="btn_up_photo">添加学校</a>
            </div>
            <div id="Msearch">
                <input type="text" value="" name="keyword" id="keyword">
                <input type="submit" id="search" value="搜索">
            </div>
        </div>
        <div class="mainBodyShow">
            <table border="0" cellpadding="0" cellspacing="0" id="UserAddList">
                <tbody>
                    <tr>
                        <th class="th1">
                            学校名称
                        </th>
                        <th class="th3">
                            管理员
                        </th>
                        <th class="th6">
                            操作
                        </th>
                    </tr>
                    <asp:Repeater ID="Repeater1" runat="server" 
                        onitemcommand="Repeater1_ItemCommand" onitemdatabound="Repeater1_ItemDataBound">
                        <ItemTemplate>
                            <tr>
                                <td class="td1">
                                    <%#Eval("Name")%>
                                </td>
                                <td class="td3">
                                    <asp:Label ID="Label1" runat="server" Text='<%#Eval("CreateUserID")%>'></asp:Label>
                                </td>
                                <td class="td6">
                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Edit" CommandArgument='<%#Eval("ID")%>'>管理</asp:LinkButton> | 
                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Del" CommandArgument='<%#Eval("ID")%>'
                                       OnClientClick="return confirm(&#39;确认要删除吗(不可恢复)？&#39;)">删除</asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
            <br />
            <webdiyer:AspNetPager CssClass="" CurrentPageButtonClass="cpb" ID="AspNetPager1"
                runat="server" AlwaysShow="True" FirstPageText="首页" Font-Size="12px" LastPageText="尾页"
                NextPageText="【下一页】 " PageSize="15" PrevPageText="【上一页】" ShowBoxThreshold="11"
                TextAfterInputBox="" TextBeforeInputBox="" UrlPaging="True" CustomInfoHTML="共%PageCount%页，第%CurrentPageIndex%页"
                ShowCustomInfoSection="Left" ShowPageIndexBox="Never" ShowFirstLast="False" ShowPrevNext="False">
            </webdiyer:AspNetPager>
        </div>
        <!-- 右侧结束 -->
    </div>
</asp:Content>
